home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Very Best of Atari Inside
/
The Very Best of Atari Inside 1.iso
/
mint
/
mntlib43
/
mntlib
/
getpid.c
< prev
next >
Wrap
C/C++ Source or Header
|
1993-02-22
|
267b
|
10 lines
#include <osbind.h>
#include <unistd.h>
#include <basepage.h>
#include <mintbind.h>
extern int __mint;
int getpid() { return __mint ? Pgetpid() : (int) ( ((long)_base) >> 8 ); }
int getppid() { return __mint ? Pgetppid() : (int) (((long)(_base->p_parent)) >> 8); }